//////////////////////////////////////////////////////////////////////////////////////////
//   _  _ ____ _  _ ___  ____                                                           //
//   |_/  |__| |\ | |  \ |  |    This file belongs to Kando, the cross-platform         //
//   | \_ |  | | \| |__/ |__|    pie menu. Read more on github.com/kando-menu/kando     //
//                                                                                      //
//////////////////////////////////////////////////////////////////////////////////////////

// SPDX-FileCopyrightText: Simon Schneegans <code@simonschneegans.de>
// SPDX-License-Identifier: MIT

@use '../../variables.scss' as *;

.checkbox {
  appearance: none;
  margin: 0.2em 0 0 0.5em;

  background-color: $widget-normal;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;

  &::before {
    content: '✔';
    display: block;
    margin-top: -0.3em;
    margin-left: 0.075em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    color: $text-link;
    font-size: 2em;
  }

  &:checked::before {
    transform: scale(1);
  }

  &:hover {
    background-color: $widget-normal-hover;
  }

  &:active {
    transform: translateY(1px);
  }
}
